From 74a51cb5b1f7e6ab53196dcd866573ef22c16c08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 3 May 2017 11:14:28 +0200 Subject: [PATCH] Remove now useless snapshot implementations --- gtk/gtkfilechooserbutton.c | 11 ----------- gtk/gtkfontbutton.c | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 7d3eba0357..179cc22ee4 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -380,16 +380,6 @@ gtk_file_chooser_button_measure (GtkWidget *widget, minimum_baseline, natural_baseline); } -static void -gtk_file_chooser_button_snapshot (GtkWidget *widget, - GtkSnapshot *snapshot) -{ - GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (widget); - GtkFileChooserButtonPrivate *priv = gtk_file_chooser_button_get_instance_private (button); - - gtk_widget_snapshot_child (widget, priv->child, snapshot); -} - static void gtk_file_chooser_button_size_allocate (GtkWidget *widget, GtkAllocation *allocation) @@ -427,7 +417,6 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class) widget_class->state_flags_changed = gtk_file_chooser_button_state_flags_changed; widget_class->measure = gtk_file_chooser_button_measure; widget_class->size_allocate = gtk_file_chooser_button_size_allocate; - widget_class->snapshot = gtk_file_chooser_button_snapshot; /** * GtkFileChooserButton::file-set: diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index ee8e76d622..c7e0ea7a61 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -462,16 +462,6 @@ gtk_font_button_measure (GtkWidget *widget, minimum_baseline, natural_baseline); } -static void -gtk_font_button_snapshot (GtkWidget *widget, - GtkSnapshot *snapshot) -{ - GtkFontButton *button = GTK_FONT_BUTTON (widget); - GtkFontButtonPrivate *priv = gtk_font_button_get_instance_private (button); - - gtk_widget_snapshot_child (widget, priv->button, snapshot); -} - static void gtk_font_button_size_allocate (GtkWidget *widget, GtkAllocation *allocation) @@ -499,7 +489,6 @@ gtk_font_button_class_init (GtkFontButtonClass *klass) widget_class->measure = gtk_font_button_measure; widget_class->size_allocate = gtk_font_button_size_allocate; - widget_class->snapshot = gtk_font_button_snapshot; klass->font_set = NULL; -- 2.30.2